﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace si.caha.Model
{
    public class Order
    {
        [Key]
        public int OrderId { get; set; }
        
        [Required]
        public DateTime OrderDate { get; set; }
        
        public bool Completed { get; set; }
        public DateTime OrderCompletedDate { get; set; }

        public int UserId { get; set; }
        public virtual User User { get; set; }
        
        public int AddressId { get; set; }
        
        public virtual ICollection<OrderedItem> OrderedItems { get; set; }
    }
}